package com.zeta.demo.kt.api

import com.zeta.api.client.demo.IDemoKotlinApi
import io.swagger.v3.oas.annotations.Hidden
import lombok.extern.slf4j.Slf4j
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import org.zetaframework.controller.SuperBaseController

/**
 * DemoKotlin服务 Feign接口实现
 *
 * @author gcc
 */
@Hidden // swagger文档忽略
@Slf4j
@RestController
@RequestMapping("/demo/kt")
class DemoKotlinApiImpl: IDemoKotlinApi, SuperBaseController {

    /**
     * 健康检查
     */
    @GetMapping("/health")
    override fun health(): Map<String, Any> {
        return mapOf("ok" to true)
    }

}
